<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE HTML>
<html>
<head>
    <c:set var="contextPath" value="${pageContext.request.contextPath}"/>
    <meta charset="utf-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>自助绑定微信号</title>
    <link rel="stylesheet" type="text/css" href="${contextPath}/resources/city/css/public-style.css"/>
    <link rel="stylesheet" type="text/css" href="${contextPath}/resources/city/css/cancel.css"/>
    <link rel="stylesheet" type="text/css" href="${contextPath}/resources/city/css/public-common.css"/>
    <style>
        body, html {
            overflow: auto;
        }

        .title {
            border-bottom: 1px #dbdbdb solid;
            padding-bottom: 0.4rem;
        }

        .EmpWe {
            color: red;
            text-align: center;
            display: block;
        }
    </style>
</head>
<body>
<!-- 内容 -->
<div id="main">
    <!-- 头部 -->
    <header>
        <img src="${contextPath}/resources/city/image/return.png" id="fanHui"/>
        <span id="tilte">自助绑定微信号</span>
    </header>
    <form:form method="post" id="formWarpp" commandName="formDto">
        <div class="content">
            <div class="reason bg">
                <div class="title">部门名称</div>
                <div class="phone">
                    <form:input path="deptName" placeholder="请填写部门" style="width: 90%"
                                cssErrorClass="error text-danger"/>
                </div>
            </div>
        </div>
        <div class="content">
            <div class="reason bg">
                <div class="title">员工姓名</div>
                <div class="phone">
                    <form:input path="employeeName" placeholder="请填写姓名" style="width: 90%"
                                cssErrorClass="error text-danger"/>
                </div>
            </div>
        </div>
        <div class="content">
            <div class="reason bg">
                <div class="title">联系电话</div>
                <div class="phone">
                    +86 <form:input path="phone" placeholder="电话号码" cssErrorClass="error text-danger"/>
                </div>
            </div>
            <form:errors path="EmpWe" cssClass="error text-danger EmpWe"/>
            <div class="bg-blue" id="submit">
                提交
            </div>
        </div>
        <br/>
    </form:form>
</div>
<br/>
</body>
<script src="${contextPath}/resources/city/js/remJs.js"></script>
<script src="${contextPath}/resources/city/js/jquery-1.8.0.min.js"></script>
<script>
    $(document).ready(function () {
        $('#fanHui').click(function () {
            self.location.href = "javascript:window.history.go(-1);";
        });
        $("#submit").click(function () {
            $("#formWarpp").submit();
        });
    });
</script>
</html>